import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '发票代码',
    align: "center",
    sorter: true,
    dataIndex: 'invoiceCode'
  },
  {
    title: '发票号码',
    align: "center",
    sorter: true,
    dataIndex: 'invoiceNumber'
  },
  {
    title: '数电票号码',
    align: "center",
    sorter: true,
    dataIndex: 'electronicInvoiceNumber'
  },
  {
    title: '销方识别号',
    align: "center",
    sorter: true,
    dataIndex: 'sellerIdentificationNumber'
  },
  {
    title: '销方名称',
    align: "center",
    sorter: true,
    dataIndex: 'sellerName'
  },
  {
    title: '购方识别号',
    align: "center",
    sorter: true,
    dataIndex: 'buyerIdentificationNumber'
  },
  {
    title: '购买方名称',
    align: "center",
    sorter: true,
    dataIndex: 'buyerName'
  },
  {
    title: '开票日期',
    align: "center",
    sorter: true,
    dataIndex: 'issueDate'
  },
  {
    title: '税收分类编码',
    align: "center",
    sorter: true,
    dataIndex: 'taxCategoryCode'
  },
  {
    title: '特定业务类型',
    align: "center",
    dataIndex: 'specificBusinessType'
  },
  {
    title: '货物或应税劳务名称',
    align: "center",
    dataIndex: 'goodsOrServicesName'
  },
  {
    title: '规格型号',
    align: "center",
    dataIndex: 'specificationModel'
  },
  {
    title: '单位',
    align: "center",
    dataIndex: 'unit'
  },
  {
    title: '数量',
    align: "center",
    dataIndex: 'quantity'
  },
  {
    title: '单价',
    align: "center",
    dataIndex: 'unitPrice'
  },
  {
    title: '金额',
    align: "center",
    dataIndex: 'amount'
  },
  {
    title: '税率',
    align: "center",
    dataIndex: 'taxRate'
  },
  {
    title: '税额',
    align: "center",
    dataIndex: 'tax'
  },
  {
    title: '价税合计',
    align: "center",
    dataIndex: 'totalPriceWithTax'
  },
  {
    title: '发票来源',
    align: "center",
    dataIndex: 'invoiceSource'
  },
  {
    title: '发票票种',
    align: "center",
    dataIndex: 'invoiceType'
  },
  {
    title: '发票状态',
    align: "center",
    dataIndex: 'invoiceStatus'
  },
  {
    title: '是否正数发票',
    align: "center",
    dataIndex: 'isPositiveInvoice'
  },
  {
    title: '发票风险等级',
    align: "center",
    dataIndex: 'invoiceRiskLevel'
  },
  {
    title: '开票人',
    align: "center",
    dataIndex: 'issuerName'
  },
  {
    title: '备注',
    align: "center",
    dataIndex: 'remarks'
  },
  {
    title: '主表id',
    align: "center",
    dataIndex: 'managementId'
  },
];

// 高级查询数据
export const superQuerySchema = {
  invoiceCode: {title: '发票代码',order: 0,view: 'text', type: 'string',},
  invoiceNumber: {title: '发票号码',order: 1,view: 'text', type: 'string',},
  electronicInvoiceNumber: {title: '数电票号码',order: 2,view: 'text', type: 'string',},
  sellerIdentificationNumber: {title: '销方识别号',order: 3,view: 'text', type: 'string',},
  sellerName: {title: '销方名称',order: 4,view: 'text', type: 'string',},
  buyerIdentificationNumber: {title: '购方识别号',order: 5,view: 'text', type: 'string',},
  buyerName: {title: '购买方名称',order: 6,view: 'text', type: 'string',},
  issueDate: {title: '开票日期',order: 7,view: 'datetime', type: 'string',},
  taxCategoryCode: {title: '税收分类编码',order: 8,view: 'text', type: 'string',},
  specificBusinessType: {title: '特定业务类型',order: 9,view: 'text', type: 'string',},
  goodsOrServicesName: {title: '货物或应税劳务名称',order: 10,view: 'text', type: 'string',},
  specificationModel: {title: '规格型号',order: 11,view: 'text', type: 'string',},
  unit: {title: '单位',order: 12,view: 'text', type: 'string',},
  quantity: {title: '数量',order: 13,view: 'text', type: 'string',},
  unitPrice: {title: '单价',order: 14,view: 'text', type: 'string',},
  amount: {title: '金额',order: 15,view: 'text', type: 'string',},
  taxRate: {title: '税率',order: 16,view: 'text', type: 'string',},
  tax: {title: '税额',order: 17,view: 'text', type: 'string',},
  totalPriceWithTax: {title: '价税合计',order: 18,view: 'text', type: 'string',},
  invoiceSource: {title: '发票来源',order: 19,view: 'text', type: 'string',},
  invoiceType: {title: '发票票种',order: 20,view: 'text', type: 'string',},
  invoiceStatus: {title: '发票状态',order: 21,view: 'text', type: 'string',},
  isPositiveInvoice: {title: '是否正数发票',order: 22,view: 'text', type: 'string',},
  invoiceRiskLevel: {title: '发票风险等级',order: 23,view: 'text', type: 'string',},
  issuerName: {title: '开票人',order: 24,view: 'text', type: 'string',},
  remarks: {title: '备注',order: 25,view: 'textarea', type: 'string',},
  managementId: {title: '主表id',order: 26,view: 'text', type: 'string',},
};
